package com.test.booksystem.mapper;

import com.test.booksystem.model.BookInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface BookMapper {
    Integer addBook(BookInfo bookInfo);

    List<BookInfo> queryBookInfoByPage(Integer offset, Integer limit);

    Integer countTotalBookInfo();

    BookInfo queryBookById(Integer id);

    Integer updateBook(BookInfo bookInfo);

    Integer batchDeleteBookByIds(List<Integer> ids);
}
